package com.cskaoyan.mall.mapper;

import org.apache.ibatis.annotations.Param;
import java.util.List;
import com.cskaoyan.mall.bean.Admin;
import com.cskaoyan.mall.bean.bo.AdminLoginBo;

/**
 * Created by Zsp
 * 2021/1/9
 */
public interface AdminMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    Integer selectByUsernameAndPassword(AdminLoginBo adminLoginBo);

    List<Admin> selectALLOrderByAddTimeDesc(@Param("username") String username, @Param("sort") String sort, @Param("order") String order);

    Integer selectByUsername(Admin admin);

    List<String> selectPasswordByUsername(@Param("username") String username);

    List<Admin> selectAllByUsername(@Param("username")String username);

    Integer deleteById(Admin updated);

}